package com.woniu.pojo;

import java.io.Serializable;

/**
 * job
 * @author 
 */
public class Job implements Serializable {
    /**
     * 平均工资
     */
    private Double avsalary;

    public Double getAvsalary() {
        return avsalary;
    }
    /**
     * 总人数
     */
    private int count;

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void setAvsalary(Double avsalary) {
        this.avsalary = avsalary;
    }

   private Student student;

    public Student getStudent() {
        return student;
    }

    public void setStudent(Student student) {
        this.student = student;
    }

    /**
     * 就业id
     */
    private Integer jid;

    /**
     * 学生
     */
    private Integer sid;

    /**
     * 就业薪资
     */
    private Double salary;

    /**
     * 就业地点
     */
    private String loc;

    private static final long serialVersionUID = 1L;

    public Integer getJid() {
        return jid;
    }

    public void setJid(Integer jid) {
        this.jid = jid;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public Double getSalary() {
        return salary;
    }

    public void setSalary(Double salary) {
        this.salary = salary;
    }

    public String getLoc() {
        return loc;
    }

    public void setLoc(String loc) {
        this.loc = loc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Job other = (Job) that;
        return (this.getJid() == null ? other.getJid() == null : this.getJid().equals(other.getJid()))
            && (this.getSid() == null ? other.getSid() == null : this.getSid().equals(other.getSid()))
            && (this.getSalary() == null ? other.getSalary() == null : this.getSalary().equals(other.getSalary()))
            && (this.getLoc() == null ? other.getLoc() == null : this.getLoc().equals(other.getLoc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getJid() == null) ? 0 : getJid().hashCode());
        result = prime * result + ((getSid() == null) ? 0 : getSid().hashCode());
        result = prime * result + ((getSalary() == null) ? 0 : getSalary().hashCode());
        result = prime * result + ((getLoc() == null) ? 0 : getLoc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", jid=").append(jid);
        sb.append(", sid=").append(sid);
        sb.append(", salary=").append(salary);
        sb.append(", loc=").append(loc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}